<%@ page language="java" contentType="text/html;charset=UTF-8" %>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested"%>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack"%>

<chiptrack:checkLogon sourcePage="purchaseOrders.do"/>
<%@ page import="com.scalar.chiptrack.utils.ConfigManager,
                 com.scalar.chiptrack.users.Functionality,
                 com.scalar.chiptrack.users.User,
                 java.util.ArrayList"%>
<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML><HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type="text/css" rel=stylesheet>

<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
<BODY bgColor="#ffffff" leftMargin=0 topMargin=0 marginheight="0" marginwidth="0" onUnload="closeWindow()">

<SCRIPT language="JavaScript">


    function closeWindow()
    {
        window.close();
    }

	function selectValue( vendorPartNumber )
	{
		opener.assignDate( vendorPartNumber);
		window.close()
	}

    function closeWindow()
    {
        window.close();
    }

</SCRIPT>

<html:form name="purchaseOrderForm"  type="com.scalar.chiptrack.finance.openpo.forms.purchaseOrderForm" action="/purchaseOrders.do">

<TABLE cellSpacing=0 cellPadding=0 width="100%" border="0">
    <TBODY>
    <TR>
	    <TD width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'></TD>
        <TD bgcolor="#ffffff">
        <IMG height=9 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8></TD>
        <TD bgcolor="#ffffff"><IMG height=300 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=2></TD>
        <TD valign="top" width="100%">
        <IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width=200 border=0>
        <BR>
        <!-- from here your body starts -->
        <TABLE border="0">
            <tr>
                <td colspan=3><font class="NArialL"><font align=left color="FF0000" id=message ></font></td>
            </tr>
            <TR><TD colspan =3 class="NArialL"><chiptrack:messages type="info" styleClass="NArialL" /></TD></TR>
            <tr><td colspan=3><chiptrack:info styleClass="NArialL"/></td></tr>
			<tr><td colspan=3><chiptrack:errors styleClass="NArialL"/></td></tr>
            <TR>
                <TD colspan="3" bgColor="#993333" width="200" height="16"><FONT class="NArialL" style="color:#ffffff" id="fieldLabel">&nbsp;Vendor Part Number:</FONT></TD>
            </TR>
            <%
                ArrayList vendorPartNumberList = (ArrayList)request.getAttribute("vendorPartNumberList");
            %>
            <% for( int i=0; i < vendorPartNumberList.size(); i++ ){ %>
            <TR>
                <TD width="20%">&nbsp;</TD>
                <TD width="60%">
					<a href="javascript:selectValue('<%=vendorPartNumberList.get(i)%>')"><font class="NArialL"><%=vendorPartNumberList.get(i)%></font></a>
                </TD>
				<td width="20%">&nbsp;</td>
            </TR>
            <%}if( vendorPartNumberList.size() == 0 ){%>
             <TR>
                <TD width="20%">&nbsp;</TD>
                <TD width="60%"><font class="NArialL">
                   No Vendor Part Numbers defined for this product</font>
                </TD>
				<td width="20%">&nbsp;</td>
            </TR>
            <%}%>
            <TR  id="rowId1"><TD colspan="3" ></TD></TR>
            <TR>
                <TD width="62">&nbsp;</TD>
                <TD colspan="2" width="195">&nbsp;</TD>
            </TR>
<!--             <TR>
                <TD width="62">&nbsp;</TD>
                <TD align="center">
                    <a href="javascript:save();"><IMG onmouseover="window.status='Click here to Select Vendor Part Number';return true" title="Click here to Select Vendor Part Number" onmouseout="window.status='';return true" height=17 src="<%=chipTracContext%>/jsp/includes/images/save.gif"  width=53 border=0></a>
                    <a href="javascript:document.purchaseOrderForm.reset();"><IMG onmouseover="window.status='Click to Reset';return true" title="Click here to Reset" onmouseout="window.status='';return true" src="<%=chipTracContext%>/jsp/includes/images/reset.gif" border=0 width="53" height="17"></a>
                </TD>
                <TD colspan="5">&nbsp;</TD>
            </TR> -->
            <TR>
                <TD colspan="6" align="center">
                    <a href="javascript:closeWindow();"  onMouseOver="window.status='Click here to close this window';return true" title='Click here to close this window'><font class='NArialL'><b>[Close this window]</b></font></a>
                </TD>
            </TR>
        </TABLE>
</html:form>
    </TD>
<!-- till here -->
  </TR>
  </TBODY>
</TABLE>
</BODY>
</HTML>


